home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / bcsrce2.zip / BCDEMO4.BAT < prev    next >
DOS Batch File  |  1990-10-18  |  2KB  |  109 lines

  1. echo off
  2. cls
  3. echo.
  4. echo.
  5. echo Do you wish to use the utility menu?
  6. chekbox4 2 38
  7. rem if exist yes.yes goto umenu
  8. if errorlevel 2 goto umenu
  9. if errorlevel 1 goto NEXT2
  10. rem ERASE no.no > nul
  11. goto NEXT2
  12. :UMENU
  13. rem ERASE yes.yes > nul
  14. UTILMEN2
  15. PAUSE
  16. CLS
  17. ECHO.
  18. ECHO This is the syntax for chekbox2 which you used to choose the menu with.
  19. ECHO.
  20. chekbox4
  21. PAUSE
  22. :NEXT2
  23. cls
  24. echo.
  25. echo.
  26. echo Do you wish to copy files?
  27. chekbox4 2 28 no
  28. rem if exist yes.yes goto COPYING
  29. rem ERASE no.no > nul
  30. if errorlevel 2 goto COPYING
  31. if errorlevel 1 goto NEXT3
  32. goto NEXT3
  33. :COPYING
  34. rem ERASE yes.yes > nul
  35. copyd
  36. goto NEXT3
  37. :NEXT3
  38. cls
  39. echo.
  40. echo.
  41. echo Do you wish to see a chart of ansi.sys commands?
  42. chekbox4 2 50
  43. rem if exist yes.yes goto ANSIUSE
  44. rem ERASE no.no > nul
  45. if errorlevel 2 goto ANSIUSE
  46. if errorlevel 1 goto NEXT4
  47. goto NEXT4
  48. :ANSIUSE
  49. rem ERASE yes.yes > nul
  50. ansi
  51. PAUSE
  52. goto NEXT4
  53. :NEXT4
  54. cls
  55. echo.
  56. echo.
  57. echo Do you wish to see a chart of State abreviations?
  58. chekbox4 2 51
  59. rem if exist yes.yes goto STABS
  60. rem ERASE no.no > nul
  61. if errorlevel 2 goto STABS
  62. if errorlevel 1 goto NEXT5
  63. goto NEXT5
  64. :STABS
  65. rem ERASE yes.yes > nul
  66. states
  67. PAUSE
  68. goto NEXT5
  69. :NEXT5
  70. cls
  71. echo.
  72. echo.
  73. echo Do you wish to view all of the source code files?
  74. chekbox4 2 51
  75. rem if exist yes.yes goto SOURCE
  76. rem ERASE no.no > nul
  77. if errorlevel 2 goto SOURCE
  78. if errorlevel 1 goto END
  79. goto END
  80. :SOURCE
  81. rem ERASE yes.yes > nul
  82. cls
  83. bigecho COMPILABLE
  84. echo.
  85. echo.
  86. echo.
  87. bigecho .BAT FILES
  88. mrun viewing *.bc
  89. cls
  90. bigecho NONCOMPILE
  91. echo.
  92. echo.
  93. echo.
  94. bigecho .BAT FILES
  95. mrun viewing *.bat
  96. goto END
  97. :END
  98. cls
  99. echo.
  100. bigecho  Wenham's
  101. echo   These are examples of how you can utilize Wenham Software's .BAT compiler
  102. echo   for various utilitary purposes. You can quite easily replace dozens of
  103. echo   .BAT file utilities. Plus, you can distribute it in one program freely.
  104. bigecho  BATCOM
  105. echo   I am not associated with Wenham. But, I do have respect for this utility.
  106. echo   It is not only reliable but it also can be learned in a day by most peo-
  107. echo   ple who have some knowledge of .BAT programming and 123 macros or Dbase.
  108. box2 1 1 24 80
  109.